From 925345541f17c273b77fdc218221449df649582a Mon Sep 17 00:00:00 2001 From: S Page Date: Thu, 5 Nov 2015 16:08:02 -0800 Subject: [PATCH] Allow AUTHOR|CREDITS with .{media,}wiki extension With this fix, Special:Version shows "and others" for MobileFrontend authors, and Special:Version/Credits/MobileFrontend works. Bug: T117932 Change-Id: I80bc334aba80d3621416cfec1a13db4872ac53cf --- includes/specials/SpecialVersion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 7e0f0b2629..80560bed54 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -1062,7 +1062,7 @@ class SpecialVersion extends SpecialPage { foreach ( scandir( $extDir ) as $file ) { $fullPath = $extDir . DIRECTORY_SEPARATOR . $file; - if ( preg_match( '/^((AUTHORS)|(CREDITS))(\.txt)?$/', $file ) && + if ( preg_match( '/^((AUTHORS)|(CREDITS))(\.txt|\.wiki|\.mediawiki)?$/', $file ) && is_readable( $fullPath ) && is_file( $fullPath ) ) { -- 2.20.1